package com.arpa.ntocc.common.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 网点表DTO
 * </p>
 *
 * @author wangyujie
 * @since 2020-01-06
 */
@Data
@ApiModel(value="授权Dto", description="授权主体可以是：组织、账号等")
public class PartyAuthorizeDto implements Serializable {


    @ApiModelProperty(value = "授权主体标识：组织编码、账号等")
    @NotBlank(message = "编码不能为空")
    private String partyCode;

    @ApiModelProperty(value = "组织编码")
    @NotBlank(message = "组织编码不能为空")
    private String groupCode;

    @ApiModelProperty(value = "资源标识")
    @NotEmpty(message = "资源不能为空")
    private List<String> resourceCodeList;

}
